package com.haoqizhe.kernel.commons.enums;

/**
 * 是否枚举
 *
 * @author haoqizhe.li
 * @date 2021/4/14 22:44
 */
public enum IfEnum {
    NO("0"), YES("1");

    private String code;

    IfEnum(String code) {
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public int parseInt(){
        return Integer.parseInt(this.code);
    }
}
